
import Relay from "react-relay";
export default class ProductionProcessMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getproductProcessDetail }`;
    }

    getVariables() {
        return {
            argsInput: {
              gId: this.props.gId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getproductProcessDetailPayload  {
            getproductProcessDetail {
                errorCode
                value
                totalResult
                id
                productProduceDetails{
                  produceDate
                  cutQua
                  sewQua
                  afterQua
                  packQua
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getproductProcessDetailPayload  {
                    getproductProcessDetail {
                        errorCode
                        value
                        totalResult
                        id
                        productProduceDetails{
                          produceDate
                          cutQua
                          sewQua
                          afterQua
                          packQua
                        }
                    }
                 }
            `]
        }];
    }

}
